package com.roocon.design_pattern.chapter07_work_thread;

public class Request {
  private final String name;
  private final int number;

  public Request(String name, int number) {
    this.name = name;
    this.number = number;
  }

  public void execute(){
    System.out.println(Thread.currentThread().getName() +  "\texecute\t" + this);
  }

  @Override public String toString() {
    return "Request{" +
        "name='" + name + '\'' +
        ", number=" + number +
        '}';
  }
}
